# python寻找一个对象的属性时,会优先找对象的实例属性,发现没有的时候,就去找生产对象的类有没有这个属性

class Car():
    brand = "BMW"
    height = 1400
    width = 4000
    abc = "111"


car1 = Car()
car2 = Car()


car1.color = "blue"
car2.color = "red"
car2.abc = "123"

print(car1.color)  # blue
print(car2.color)  # red
print(car2.abc)
print(car1.abc)